package com.gcxy.tour.domain;

import java.io.Serializable;


/**
 * 内容：用户User 的详细信息
 * @author 方昆
 *
 */
public class UserInfo implements Serializable{

	
	private static final long serialVersionUID = 6311089944157086919L;
	

	private Long id; //标号
	
	private String usercode;//用户账号
	
	private String username;//用户名
	
	private String password;//密码
	
	private String oldpassword;//旧密码 用于修改密码
	
	private String newpassword;//新密码 用于替换旧密码
	
	private Integer usertype;//用户类型 0 用户  1 管理员
	
	private String userphone;//电话号码
	
	
	//默认构造函数
	public UserInfo() {
	}
	
	
	public UserInfo(String usercode,String username,String password) {
		this.password=password;
		this.username=username;
		this.usercode=usercode;
	}


	public Long getId() {
		return id;
	}


	public void setId(Long id) {
		this.id = id;
	}


	public String getUsercode() {
		return usercode;
	}


	public void setUsercode(String usercode) {
		this.usercode = usercode;
	}


	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public Integer getUsertype() {
		return usertype;
	}


	public void setUsertype(Integer usertype) {
		this.usertype = usertype;
	}


	public String getOldpassword() {
		return oldpassword;
	}


	public void setOldpassword(String oldpassword) {
		this.oldpassword = oldpassword;
	}


	public String getNewpassword() {
		return password;
	}


	public void setNewpassword(String newpassword) {
		this.password = newpassword;
	}
	
	/**
	 * 修改过的密码
	 * @param repassword
	 */
	public void setRepassword(String repassword) {
		this.newpassword = repassword;
	}
	public String getRepassword() {
		return this.newpassword;
	}


	public String getUserphone() {
		return userphone;
	}


	public void setUserphone(String userphone) {
		this.userphone = userphone;
	}
	
	
	
	
	
	
	

}
